<?php

require_once 'config.php';

$sql = "SELECT escritura, emolumento FROM tabeliaes";
$consulta = mysql_query($sql);

echo "<table border='1'>";
	echo "<tr>";
		echo "<td width='150'>Escritura</td>";
		echo "<td width='150'>Emolumento</td>";
	echo "</tr>";
echo "</table>";

while ($registro = mysql_fetch_assoc($consulta)) {
	echo "<table border='1'>";
		echo "<tr>";
			echo "<td width='150'>".$registro["escritura"];
			echo "<td width='150'>".$registro["emolumento"];
		echo "</tr>";
	echo "</table>";
}

//echo "</table>";


?>